<template>
	<!-- <web-view src="https://weidian.com/?userid=1143580326"></web-view> -->
</template>

<script setup>
	import {
		onLoad,
		onShow,
		onHide
	} from '@dcloudio/uni-app'

	onShow(() => {
		// #ifdef H5
		location.href = 'https://weidian.com/?userid=1143580326'
		// #endif
		// #ifdef APP-PLUS||MP-WEIXIN
		uni.showToast({
			icon:'none',
			title:'暂不支持小程序或APP进入商城...'
		})
		uni.showModal({
			content:'暂不支持小程序或APP进入商城...',
			showCancel:false,
			success: function (res) {
					if (res.confirm) {
						uni.switchTab({
							url:'/pages/home/home'
						})
					}
				}
		})
		// uni.hideTabBar()
		// #endif

	})
	
</script>

<style lang="scss">
	view {
		height: 100%;
		position: fixed;
		bottom: 0;
		z-index: 999;
	}
</style>